import Vue from 'vue'
import Router from 'vue-router'
import Home from "../components/layout/Home";
import StashList from "../components/stash/List";
import StashAdd from "../components/stash/Add";
import GoodsList from "../components/goods/List"
import GoodsAdd from "../components/goods/Add";
import InventoryList from "../components/inventory/List"
import Delivery from "../components/inventory/Delivery";
import Put from "../components/inventory/Put";


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home,
      children:[
        {
          path: '/stash/List',
          name: 'StashList',
          component: StashList
      },
        {
          path: '/stash/Add',
          name: 'StashAdd',
          component: StashAdd
        },
        {
          path: '/goods/List',
          name: 'GoodsList',
          component: GoodsList
        },
        {
          path: '/goods/Add',
          name: 'GoodsAdd',
          component: GoodsAdd
        },
        {
          path: '/inventory/List',
          name: 'InventoryList',
          component: InventoryList
        },
        {
          path: '/inventory/Delivery:iid',
          name: 'Delivery',
          component: Delivery
        },
        {
          path: '/inventory/Put',
          name: 'Put',
          component: Put
        }
      ]
    },

  ]
})
